﻿{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_cjdianc/template/public/ygcsslist.css">
<style type="text/css">
    .yg5_key>div{float: left;line-height: 34px;}

    .store_td1{height: 45px;}

    .store_list_img{width: 20px;height: 20px;border-radius: 50%;}

    .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}

    .yg5_tr2>td{padding: 15px;border: 1px solid #e5e5e5;text-align: center;}

    .yg5_tr1>th{
        border: 1px solid #e5e5e5;
        padding-left: 15px;
        background-color: #FAFAFA;
        font-weight: bold;
        text-align: center;
    }
    .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}

    .accout_inp{width: 100%;height: 35px;border: 1px solid #cccccc;font-size: 14px;color: #333;}
    .table{margin-bottom: 0px;}
    .ygassess{padding: 0px 15px;}
    .navback{display: none;}
    .yg_back{margin-left: 170px;}
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>    
    <li class="active"><a href="javascript:void(0);">评论管理</a></li>
</ul>
<div class="main">
  <div class="row">

  <div class="col-lg-6">

   <form action="" method="POST">

    <div class="input-group" style="width: 300px">

     <input type="text" name="keywords" class="form-control" placeholder="请输入评论内容">

      <span class="input-group-btn">

         <input type="submit" class="btn btn-default" name="submit" value="查找"/>

      </span>

    </div>

  </div>

   <input type="hidden" name="token" value="{$_W['token']}"/>

  </form>

</div>

    <!-- 门店列表部分开始 -->
<div class="main">
        <div class="panel panel-default">

            <div class="panel-heading">

                评论列表

            </div>

            <div class="panel-body ygassess">

                <div class="row">

                    <table class="table" >

              <tr class="yg5_tr1">

                  <th class="col-md-2 store_td1">评价内容</th>

                  <th class="col-md-2">评价分数</th>

                  <th class="col-md-2">评价时间</th>

                  <th class="col-md-2">状态</th>

                  <th class="col-md-2">回复</th>

                  <th class="col-md-2">操作</th>

              </tr>

              {loop $list $key $item}

              <tr class="yg5_tr2">
                 <td>
                {$item['content']}
                </td>
                <td>
                  {$item['score']}
                </td>
                <td>
                  {$item['cerated_time']}
                </td>
                {if $item['status']==1}
                <td>
                <span class="label storered">未回复</span>
                </td>
                {elseif $item['status']==2}
                <td>
                <span class="label storeblue">已回复</span>
                </td>
                {/if}
                <td>
                  {if $item['status']==1}
                  <a href="javascript:void(0);" data-toggle="modal" data-target="#myModal{$item['id']}"><span class="btn btn-xs storeblue">回复</span> </a>
                  {else}
                  <span class="btn btn-xs storegrey">已回复</span>
                  {/if}
                  
                </td>
                  <td>
                    <a href="{php echo $this->createWebUrl2('dlassessinfo', array('id'=>$item['id'],'op'=>'info'));}" class="storespan btn btn-xs">
                            <span class="fa fa-pencil"></span>
                            <span class="bianji">编辑
                                <span class="arrowdown"></span>
                            </span>                                
                        </a>
                        <a href="{php echo $this->createWebUrl('assess', array('op'=>delete,'id'=>$item['id']));}" class="storespan btn btn-xs" onclick="if(!confirm('删除后将不可恢复,确定删除吗?')) return false;" data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
                            <span class="fa fa-trash-o"></span>
                            <span class="bianji">删除
                                <span class="arrowdown"></span>
                            </span>
                        </a>
                  <!-- <a href="{php echo $this->createWebUrl2('dlassessinfo', array('id'=>$item['id'],'op'=>'info'));}" class="btn btn-xs btn-info" >查看 </a>
                  <a onclick="if(!confirm('删除后将不可恢复,确定删除吗?')) return false;" href="{php echo $this->createWebUrl('assess', array('op'=>delete,'id'=>$item['id']));}" class="btn btn-xs btn-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="删除"><i class="fa fa-times"></i> </a> -->   
                </td>
              </tr>
               <div class="modal fade" id="myModal{$item['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                      <div class="modal-dialog" role="document">
                          <form action="" method="post" enctype="multipart/form-data">
                              <div class="modal-content">
                                  <div class="modal-header">
                                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                      <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">编辑回复内容</h4>
                                  </div>
                                  <div class="modal-body" style="font-size:20px">
                                      <input type="text" name="reply" class="accout_inp" placeholder="请输入回复内容">
                                  </div>
                                  <div class="modal-footer">
                                      <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                      <input type="submit" name="submit2" class="btn btn-info" value="确定">
                                      <input type="hidden" name="token" value="{$_W['token']}"/>
                                      <input type="hidden" name="id" value="{$item['id']}"/>
                                  </div>
                              </div>
                          </form>
                      </div>
                  </div>

              {/loop}

                <!-- 这是弹框部分开始 -->

                 

                <!-- 这是弹框部分结束 -->



              {if empty($list)}

             <tr class="yg5_tr2">

                <td colspan="6">

                  暂无评论

                </td>

              </tr>

             

              {/if}

          </table>

                </div>

            </div>

        </div>
</div>
<div class="text-right we7-margin-top">
 {$pager}
 </div>
<script type="text/javascript">
    $(function(){
        // $("#frame-9").addClass("in");
        // $("#frame-9").show();
        $("#yframe-9").addClass("wyactive");
    })
</script>